#ifndef SWAP_H
#define SWAP_H

#include "RGBEffect.h"

class Swap : public RGBEffect
{

public:
    explicit Swap();
    ~Swap();

    //EFFECT_REGISTERER(ClassName(), CAT_SIMPLE, [](){return new Swap;});

    static std::string const ClassName() {return "Swap";}
    //void DefineExtraOptions(QLayout*) override;
    void StepEffect(ControllerZone* const controller_zone) override;

private:

    RGBColor GetColor(unsigned int, unsigned int);

    RGBColor c1;
    RGBColor c2;

    RGBColor random1;
    RGBColor random2;

    double time = 0.0;
    double progress = 0.0;
    bool dir = 0;
    bool old_dir = 0;

};

#endif // SWAP_H
